﻿import java.util.Scanner;

public class code059 {
	public static void main(String[] args){
		Scanner input=new Scanner(System.in);
		String answer;
		do {System.out.println("第一个整数");
		int num=input.nextInt();
		System.out.println("第二个整数");
		int num1=input.nextInt();
		System.out.println("1.+ 2.- 3.* 4./");
		int fu=input.nextInt();
		int he =num+num1;
		int cha =num-num1;
		int ji =num*num1;
		int shang =num/num1;
		switch(fu){
		case 1:
			System.out.println(he);
			break;
		case 2:
			System.out.println(cha);
			break;
		case 3:
			System.out.println(ji);
			break;
		case 4:
			System.out.println(shang);
			break;
		}
		System.out.println("是否继续(y/n)");
		answer=input.next();
		}while(!"y".equals(answer));
			System.out.println("谢谢使用");
		
		
	}
}